<?php
/**
 * Created by PhpStorm.
 * User: superlee
 * Date: 2019/11/16
 * Time: 18:43
 */

namespace app\admin\controller;
use app\admin\model\Purchase as PurchaseModel;
use Carbon\Carbon;

class Order extends Common
{
    public function order_list () {
        return $this->fetch();
    }

    public function import_order () {
        return $this->fetch();
    }

    public function import_express_bill () {
        return $this->fetch();
    }

    public function import_shipping () {
        return $this->fetch();
    }

    public function order_query () {
        return $this->fetch();
    }

    public function service_order_list () {
        return $this->fetch();
    }

//    private function create_order_sn ($type=1){
//        $S_prefix = $type == 1 ? 'M' : 'A';
//        $time = Carbon::now(config('default_timezone'))->locale('zh_cn');
//        $purchase_sn = $S_prefix . $time->year . $time->month . $time->day . '_' .$time->micro;
//        return $order_sn;
//    }
}